
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.SysAnnounce;

public interface SysAnnounceDao extends Dao {

    /**
     * Retrieves all of the sysAnnounces
     */
    public List getSysAnnounces(SysAnnounce sysAnnounce);

    /**
     * Gets sysAnnounce's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the sysAnnounce's id
     * @return sysAnnounce populated sysAnnounce object
     */
    public SysAnnounce getSysAnnounce(final Long id);

    /**
     * Saves a sysAnnounce's information
     * @param sysAnnounce the object to be saved
     */    
    public void saveSysAnnounce(SysAnnounce sysAnnounce);

    /**
     * Removes a sysAnnounce from the database by id
     * @param id the sysAnnounce's id
     */
    public void removeSysAnnounce(final Long id);
}

